package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

//@MapperScan("com.sky.mapper")自动扫描并注入mapper注解
public interface DishFlavorMapper {

    /*
    新增菜品口味
    */
    void insertBatch(List<DishFlavor> dishFlavorList);
    //    批量删除口味基于xml，并且不使用for循环
    void deleteBatch(List<Long> ids);
//    批量删除口味
    @Delete("delete from dish_flavor where dish_id=#{dishId}")
    void delete(Long id);

    List<DishFlavor> selectById(Long dishId);
}
